package com.itheima.health.mapper;

import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * 会员DAO
 */
@Mapper
public interface MemberMapper {

    void insert(Member member);

    @Select("select * from t_member where idCard = #{idCard}")
    Member selectByIdCard(String idCard);

    Integer countByMap(Map map);

    @Select("select regTime from t_member")
    List<LocalDate> allDate();
}
